set /p checkoutRemoteBranch=Please enter the 'Remote Branch Name' to restore to:

echo Remote Branch Name to Restore to=%checkoutRemoteBranch%


set work_path=%~dp0
cd /d %work_path%
cd ../
set work_path=%cd%


echo Please ensure that the personal code has been submitted, otherwise it cannot be retrieved
echo Please ensure that the personal code has been submitted, otherwise it cannot be retrieved
echo Please ensure that the personal code has been submitted, otherwise it cannot be retrieved
echo Please ensure that the personal code has been submitted, otherwise it cannot be retrieved
echo Please ensure that the personal code has been submitted, otherwise it cannot be retrieved
echo Please ensure that the personal code has been submitted, otherwise it cannot be retrieved

pause


for /d %%s in (%work_path%\*) do (
cd %%s

git reset --hard origin/%checkoutRemoteBranch%

)


echo ok...
pause

